import request from '@/utils/request'

/**
 * 新增生产计划
 * @param {Object} data
 */
export function addPlans(data) {
    return request({
        url: '/plan/plan',
        method: 'post',
        data: data
    })
}

/**
 * 获取计划列表
 * @param {Object} data
 */
export function getPlanList(data) {
    return request({
        url: '/plan/plan/list',
        method: 'get',
        data: data
    })
}

/**
 * 获取计划列表
 * @param {Object} data
 */
export function getClothist(data) {
    return request({
        url: '/plan/plan/clothlist',
        method: 'get',
        data: data
    })
}

/**
 * 删除生产计划
 * @param {Object} data
 */

export function delPlan(planId) {
  return request({
    url: '/plan/plan/' + planId,
    method: 'delete'
  })
}


